<? 
    session_start();
	include_once ("core/conn.php");
	$db = get_conn();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Genosha Gate Keeper</title>
</head>

<body>
<script>
	function check_login(form_obj){
		if(form_obj.username.value==''){
			alert("Please fill your username");
			form_obj.username.focus();
			return false;
		}

		if(form_obj.password.value==''){
			alert("Please fill your password");
			form_obj.password.focus();
			return false;
		}
		
		return true;
	}
</script>

<form action="core/login.php" method="post" name="login_form" onSubmit="return check_login(this)">
	
	<table align="center">
		<tr>
			<th><div align="left"><?php echo get_text(1)?></div></th>
			<td ><div align="left">
			  <input name="username"  type="text" value="<? echo $u?>" size="25" maxlength="40"  />			
		    </div></td>
		</tr>
		<tr>
			<th ><div align="left"><?php echo get_text(2)?></div></th>
			<td class="silver_der_abajo"><div align="left">
			  <input  type="password" name="password" size="25" maxlength="40" value="" />
		  </div></td>
		</tr>
		<tr>
			<td><div align="left"></div></td>
			<td><div align="left">
			  <input type="submit" name="button" id="button" class="submit_verde" value="<?php echo get_text(3)?>" />
		  </div></td>
		</tr>

		<tr>
		  <td class="silver" colspan="2" align="center">&nbsp;</td>
	  </tr>
		<tr>
		  <td class="silver" colspan="2" align="center"><?php if($_GET['e']=='ip'){echo "<blink>Contraseña Invalida</blink>";}?></td>
	  </tr>
		<tr>
		  <td class="silver" colspan="2" align="center">&nbsp;</td>
	  </tr>
		<tr>
		  <td class="silver" colspan="2" align="center"><a href="../forgot.php"><?php echo get_text(4)?>?</a></td>
		</tr>
	</table>


</form>
</body>
</html>
